extends Button


# Declare member variables here. Examples:
# var a = 2
# var b = "text"


# Called when the node enters the scene tree for the first time.
func _ready():
	Model.title = self
	pass # Replace with function body.


# Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
#	pass


func _on_story_pressed():
	Worker.toStory()
	Audio.playBtnEffect()
	Model.play.addStory(Config.first_story)
	Model.play_time = 0
	pass # Replace with function body.


func _on_cglibrary_pressed():
	Worker.showCgLibrary()
	Audio.playBtnEffect()
	pass # Replace with function body.


func _on_musiclibrary_pressed():
	Worker.showMusicLibrary()
	Audio.playBtnEffect()
	pass # Replace with function body.


func _on_load_pressed():
	Worker.showDataManager(Worker.DataManagerMode.LOAD, true)
	Audio.playBtnEffect()
	pass # Replace with function body.


func _on_LinkButton_pressed():
	return OS.shell_open("https://quanquan.pro/group/4")


func _on_exit_pressed():
	get_tree().quit(0)
	pass # Replace with function body.
